#include "mib_functions.h"
const unsigned char get_snmp_oid_last_byte(unsigned char param_ID)
{
	//unsigned char instance;
	//unsigned char access;
	//unsigned char asn_type;
	//unsigned short v_len;
	unsigned char tableRowNumber__or__isScalar = 0;
	switch (param_ID)
	{
		//start table->tableRMC >> entryRMC
		case 1:    /* paramMessageID  */
		//instance = MIB_OBJECT_TAB;
		tableRowNumber__or__isScalar = 1;
		//access = MIB_OBJECT_READ_ONLY;
		//asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
		//v_len = ;// todo:  set the appropriate length eg. sizeof(char_buffer);
		break;
		case 2:    /* paramUTCTime  */
		//instance = MIB_OBJECT_TAB;
		tableRowNumber__or__isScalar = 2;
		//access = MIB_OBJECT_READ_ONLY;
		//asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_OC_STR);
		//v_len = ;// todo:  set the appropriate length eg. sizeof(char_buffer);
		break;
		//end table->tableRMC >> entryRMC
		//start scalar->errStatus
		case 11:    /* errStatus  */
		//instance = MIB_OBJECT_SCALAR;
		tableRowNumber__or__isScalar = 0;
		//access = MIB_OBJECT_READ_ONLY;
		//asn_type = (SNMP_ASN1_UNIV | SNMP_ASN1_PRIMIT | SNMP_ASN1_INTEG);
		//v_len = ;// todo:  set the appropriate length eg. sizeof(u32_t);
		break;
		//end scalar->errStatus
		default:
		break;
	};
	return tableRowNumber__or__isScalar;
}

const unsigned char get_snmp_object_type(unsigned char param_ID)
{
	unsigned char asn_type;
	switch (param_ID)
	{
		//start table->tableRMC >> entryRMC
		case 1:    /* paramMessageID  */
		asn_type = SNMP_ASN1_OC_STR;
		break;
		case 2:    /* paramUTCTime  */
		asn_type = SNMP_ASN1_OC_STR;
		break;
		//end table->tableRMC >> entryRMC
		//start scalar->errStatus
		case 11:    /* errStatus  */
		asn_type = SNMP_ASN1_INTEG;
		break;
		//end scalar->errStatus
		default:
		break;
	};
	return asn_type;
}

